package com.leantech.android.browser.utils


import com.lean.android.ad.core.config.ChannelInfoProvider
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject

class UrlProvider : KoinComponent {

    private val channelInfoProvider by inject<ChannelInfoProvider>()

    private val policyUrl = getKoin().getProperty("policyUrl", "")
    private val serviceUrl = getKoin().getProperty("serviceUrl", "")

    fun getPrivacyUrl(): String {
        return policyUrl + channelInfoProvider.getChannel()
    }

    /**
     * 服务协议
     */
    fun getServiceUrl(): String {
        return serviceUrl + channelInfoProvider.getChannel()
    }

}